#include<func.h>
#ifndef _TRANSFORM_
#define _TRANSFORM_
//发送文件
typedef struct train_s{
    int length;
    char data[1024];
} train_t;
int sendFile(int netfd,char *filePath);
int sendFilename(int netfd, char *filePath);
int recvInfo(int netfd, void *buf);
int sendInfo(int netfd,void *data,int size);
int recvPhase(int netfd, void *buf, int length);
int recvFilename(int netfd,char *filename);
int recvFile(int netfd, char *savePath, char *filename);
//注册工作
enum Jobs{
    signup,
    login,
    print,
    cli_cd,
    cli_ls,
    cli_pushs,
    cli_polls,
    cli_remove,
    cli_pwd,
    cli_mkdir
};
enum signum{
    si_failure,
    si_success,
    si_connect,
    si_loading,
};

typedef struct userInfo_s{
    char username[32];
    char password[64];
    char rootId[20];
    int pos;
}userInfo_t;
#endif